package com.eshin.atuoconfig;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;  

/** 
 * 属性配置,Spring boot 自身的自动配置 
 * 
 */ 
@Component(value="helloProperties")
@ConfigurationProperties(prefix="hello")  
public class HelloProperties {  
      
    private static final String MSG = "world";  
      
    private String msg = MSG ;  
  
    public String getMsg() {  
        return msg;  
    }  
  
    public void setMsg(String msg) {  
        this.msg = msg;  
    }  
      
      
}  